/**
 * Copyright (c) 2013 onionframework.org
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package org.onionframework.code.action;

import javax.annotation.PostConstruct;

import org.onionframework.code.model.CodeType;
import org.onionframework.code.service.CodeTypeService;
import org.onionframework.faces.extension.ViewAction;
import org.onionframework.faces.web.action.OnionAction;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author allan
 *
 */
@ViewAction("code.codeType")
public class CodeTypeAction extends OnionAction<CodeType> {

	private static final long serialVersionUID = 7418145536302719502L;

	@Autowired private CodeTypeService codeTypeService;
	
	@PostConstruct
	public void init(){
		super.setService(this.codeTypeService);
		super.init();
	}
}
